package com.szh.mysobproject.viewmodel.app

import com.szh.mysobproject.http.ServiceCreator
import com.szh.mysobproject.http.request.api.AppApi
import com.szh.mysobproject.util.APP_INFO_URL
import com.szh.mysobproject.util.MOURNING_CALENDAR_URL

/**
 * @author : create by  szh
 * @date : 2022/6/21 13:43
 * @desc :App信息获取
 */

object AppNetWork {

    private val appApi = ServiceCreator.create<AppApi>()

    suspend fun checkAppUpdate(url: String = APP_INFO_URL) = appApi.checkAppUpData(url)
    suspend fun getMourningCalendar(url: String = MOURNING_CALENDAR_URL) =
        appApi.getMourningCalendar(url)
}